<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("path", basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=path%>/manager/assets/mycss/mine.css"
	type="text/css">
<title>字典管理</title>
</head>
<body>
	<div class="dictLeft">
		<table border="1px" cellspacing="0px">
			<tr>
				<th>Id</th>
				<th>字典编号</th>
				<th>字典文本</th>
				<th>字典类型</th>
				<th>操作</th>
			</tr>

			<c:forEach items="${requestScope.dictLists}" var="dict">

				<tr>
					<td>${dict.id}</td>
					<td>${dict.dictValue}</td>
					<td>${dict.dictText}</td>
					<td>${dict.dictType}</td>
					<td><input type="button" value="删除"
						onclick="deleteUser(${dict.id})"> <input type="button"
						value="修改" onclick="updateUser(${dict.id})"></td>
				</tr>

			</c:forEach>
		</table>
	</div>


	<div style="" class="dictRight">
		<form action="<%=path%>/goodsType/addDict.do"	method="post" id="dictAdd">
			<table>
				<tr>
					<td>字典编号</td>
					<td><input type="text" name="dictValue" /></td>
				</tr>
				<tr>
					<td>字典文本</td>
					<td><input type="text" name="dictText" /></td>
				</tr>
				<tr>
					<td>字典类型</td>
					<td><input type="text" name="dictType" /></td>
				</tr>
				<tr>
					<td><input type="reset" value="重置" /></td>
					<td><input type="submit" value="提交" /></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>